From: sorelz Date: Tue, 2 Jul 2024 20:17:35 +0000 (-0400) Subject: appDisplay: Use AppFolderDialog grabHelper to obtain key focus on popup() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~229^2^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4be19253236ed9214e1468b6f9b4e9206433a15a;p=gnome-shell.git appDisplay: Use AppFolderDialog grabHelper to obtain key focus on popup() When an app folder is opened it would do so without grabbing the keyboard focus, so one could not navigate with the arrow keys without pressing Tab. This adds the focus parameter to popup()'s grab, which sets the key focus to the elements of the folder when it is opened. Part-of: (cherry picked from commit 9569239ec5e774f59bb973adb34196b984c50e85) --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 7ffec7b70..b9c4827c5 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2903,6 +2903,7 @@ export const AppFolderDialog = GObject.registerClass({ this._isOpen = this._grabHelper.grab({ actor: this, + focus: this._editButton, onUngrab: () => this.popdown(), });